Linked objects data partially exported

Hi,

I have script where I apply a compound filter on the attributes and also traverse its out-link and get the data(Object Text, ID, etc..) of linked object and export the data to the excel spreadsheet.
When I run this script on an individual Module it runs fine and gives the perfect result. I have some 150 modules to be exported.

The problem is when I run the script in a batch (passing the modules in an array) it’s not exporting the complete data. Particularly the out-links data is not exported for some objects.

Why this peculiar behavior. Appreciate your comments and help.

Thanks,
Naveen
SystemAdmin - Mon May 30 05:44:52 EDT 2011

Re: Linked objects data partially exported
Peter_Albert - Mon May 30 05:56:52 EDT 2011

Possibly the target modules are not open when you export in batch mode? I assume you get the link information from layout DXL columns. The DXL in those columns should as a first thing traverse thoutgoing links (incoming LinkRefs) and open the target / source modules. If you have created those columns using the Analysis wizard, then there was an option whether the column should display information from either one specific module, or going through a specific link module, or from all open modules. If you chose the last option, (all open modules), then you can get the behaviour you see. One module is fine (because by purce chance you have the other module open), while other modules are not.

If you used the wizard, it would probably be the easiest solution to re-create those columns, carefully selecting the propser option. I hope you did not do this for the 150 Modules :-)

Regards,

Peter

Re: Linked objects data partially exported
SystemAdmin - Mon May 30 07:26:20 EDT 2011

Peter_Albert - Mon May 30 05:56:52 EDT 2011
Possibly the target modules are not open when you export in batch mode? I assume you get the link information from layout DXL columns. The DXL in those columns should as a first thing traverse thoutgoing links (incoming LinkRefs) and open the target / source modules. If you have created those columns using the Analysis wizard, then there was an option whether the column should display information from either one specific module, or going through a specific link module, or from all open modules. If you chose the last option, (all open modules), then you can get the behaviour you see. One module is fine (because by purce chance you have the other module open), while other modules are not.

If you used the wizard, it would probably be the easiest solution to re-create those columns, carefully selecting the propser option. I hope you did not do this for the 150 Modules :-)

Regards,

Peter

Peter,

I'm opening both source and the target modules and exporting to excel. even then the linked module data is not fully exported. And i'm not getting info from the Layout DXL columns. I'm just getting Object ID and Object Text.

Re: Linked objects data partially exported
llandale - Mon May 30 13:25:17 EDT 2011

The exporter depends on the current view of the module being exported. Batch Mode does not support the notion of 'views' since it lacks the basic GUI mechanisms for it to work.

It appears you'll need to write your own invisible module exporter. That will depend on Attr-DXL to display information about that other module. if you have that in a Layout you'll need to convert that to Attr-DXL.

It will probably end up being best if you Exporter, the one with the 150 modules in a vector, will also have another vector defining which attributes it wants to display, since you cannot depend on any 'view' providing that information. That may get sticky as perhaps the Attr-DXL that displays info from other modules will be named differently in the various modules. Perhaps you can list all of them for export, and your exporter not bother exporting an attribute that doesn't exist.

You could also forgo the notion of "batch" and instead run your DXL with the "-d " switch, go ahead and open your modules visibly, load your special view, and export. I've never done that but you will need to close DOORS explicitly when done, I think command "exit_()" will do that. Such a script will take far longer than the corresponding Batch script due to opening all modulues visibly, which takes far longer than invisibly.

  • Louie